#include "Ladder.h"
#include "..\\SGD Wrappers\\SGD_GraphicsManager.h"
#include "Game.h"
#include "GameplayState.h"

Ladder::Ladder()
{
	m_szSize = SGD::Size(32, 32);
	m_hImage = SGD::GraphicsManager::GetInstance()->LoadTexture("resource/Graphics/ladder.png");
}


Ladder::~Ladder()
{
}

void Ladder::Render()
{
	

	SGD::GraphicsManager::GetInstance()->DrawTexture(m_hImage, { m_ptPosition.x - Game::GetInstance()->GetCameraPos().x, m_ptPosition.y - Game::GetInstance()->GetCameraPos().y });

	if (myEmitter)
		myEmitter->Render();
}

void Ladder::HandleCollision(GameObject* pOther)
{
	//delete pOther;
}